package com.yunji.user.controller;


import com.yunji.user.entity.TSystemDictionaryItem;
import com.yunji.user.mapper.TSystemDictionaryItemMapper;
import com.yunji.user.service.TSystemDictionaryItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 研学旅行
 * @since 2020-02-12
 */
@RestController
@RequestMapping("/t-system-dictionary-item")
public class TSystemDictionaryItemController {

    @Autowired
    private TSystemDictionaryItemMapper tSystemDictionaryItemMapper;

    @Autowired
    private TSystemDictionaryItemService tSystemDictionaryItemService;

    @GetMapping
    public List<TSystemDictionaryItem> test(){
        List<TSystemDictionaryItem> tSystemDictionaryItems = tSystemDictionaryItemMapper.selectList(null);
        return tSystemDictionaryItems;
    }
}

